<?php
namespace Apps\Backend\Models;
use Phalcon\Mvc\Model;
class ArticleGame extends Model
{
    public $id = 0;
    public $name = null;
    public $alias = null;
    public $picture = null;
    public $link = null;
    public $keyword = null;
    public $description = null;
    public $content = null;
    public $total_rate = 0;
    public $time_rate = 0;
    public $status = 0;
    public $orders = 0;
    public $created = 0;
    public $created_by = 0;
    public $modified = 0;
    public $modified_by = 0;
    public $type = 0;
    public $view = 0;
    public $comment = 0;
    public $like = 0;

    public function initialize()
    {
        $this->setSource(ALIAS . "article");
        $this->belongsTo('created_by', 'Apps\Backend\Models\Users', 'id', array('alias' =>
                'create', 'reusable' => true));


    }
}
